home *** CD-ROM | disk | FTP | other *** search
-
-
-
- APPLYMAP(1) APPLYMAP(1)
-
-
- NNAAMMEE
- applymap - Apply the color map in an RLE file to the pixel
- data
-
- SSYYNNOOPPSSIISS
- aappppllyymmaapp [ --ll ] [ --oo _o_u_t_f_i_l_e ] [ _i_n_f_i_l_e ]
-
- DDEESSCCRRIIPPTTIIOONN
- This program takes the color map in an _R_L_E(5) file and
- modifies the pixel values by applying the color map to
- them. If there is more than one color channel in the
- input file, the color map in the input file should have
- the same number of channels. If the input file has a sinĀ
- gle color channel, the output file will have the same numĀ
- ber of color channels as the color map.
-
- Each pixel in the input file is mapped as follows: For a
- multi-channel input file, a pixel in channel _i is mapped
- as _m_a_p_[_i_]_[_p_i_x_e_l_] _>_> _8, producing a pixel in output channel
- _i. The right shift takes the 16 bit color map value to an
- 8 bit pixel value. For a single channel input file, to
- produce a pixel in output channel _i is produced from the
- corresponding input pixel value as _m_a_p_[_i_]_[_p_i_x_e_l_] _>_> _8.
-
- OOPPTTIIOONNSS
- --ll This option will cause a linear (identity) color
- map to be loaded into the output file. Otherwise,
- the output file will have no color map.
-
- _i_n_f_i_l_e The input will be read from this file, otherwise,
- input will be taken from stdin.
-
- --oo _o_u_t_f_i_l_e
- If specified, output will be written to this file,
- otherwise it will go to stdout.
-
- SSEEEE AALLSSOO
- _r_l_e_l_d_m_a_p(1), _u_r_t(1), _R_L_E(5).
-
- AAUUTTHHOORR
- Spencer W. Thomas, University of Utah
-
- BBUUGGSS
- If the image data and color map channels in the input file
- do not conform to the restriction stated above (N->N or
- 1->N) the program will most likely core dump.
-
-
-
-
-
-
-
-
-
-
-
- 1 Nov 12, 1986 1
-
-
-